-- GENERATED SPELL FOR [Ahunite Frostwind] --


function spell0_25757(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25757', 0, 1)
end

function spell1_25757(pUnit, Event) --@Wind Buffet,n/a--
pUnit:FullCastSpellOnTarget(46568,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25757', 500, 1)
end

function Sorts_25757(pUnit, Event)
local choix_sorts_25757 = math.random(0, 1)
if choix_sorts_25757 == 0 then
pUnit:RegisterEvent('spell0_25757', 1, 1)
end
if choix_sorts_25757 == 1 then
pUnit:RegisterEvent('spell1_25757', 1, 1)
end
end

function mob25757_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25757', math.random(1500, 3000), 1)
end

function mob25757_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25757_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25757_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25757, 1, 'mob25757_Action')
RegisterUnitEvent(25757, 2, 'mob25757_Leave')
RegisterUnitEvent(25757, 3, 'mob25757_Kill')
RegisterUnitEvent(25757, 4, 'mob25757_Die')
